package com.shanzmoo.db.module.member.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 会员积分变动记录
 * </p>
 *
 * @author wangyudi
 * @since 2021-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("member_account_score_record")
public class MemberAccountScoreRecordEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 平台会员id
     */
    private Integer memberInfoId;

    /**
     * 商户会员id
     */
    private Integer memberMerchantId;

    /**
     * 门店编号
     */
    private String shopCode;

    /**
     * 订单id
     */
    private String orderNo;

    /**
     * 积分变动数 
     */
    private Long score;

    /**
     * 本次所剩积分
     */
    private Long currentScore;

    /**
     * 账户变动类型1-充值 2-消费
     */
    private Integer type;

    /**
     * 交易发生的真实时间
     */
    private LocalDateTime orderTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


}
